package team.seekers.catering.service;

import team.seekers.catering.entity.dataobject.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import team.seekers.catering.entity.vo.info.OrderInfoVO;
import team.seekers.catering.entity.vo.list.OrderListVO;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author hbc
 * @since 2022-02-28
 */
public interface OrderService extends IService<Order> {

    String create(String foodId, String userId);

    OrderInfoVO getToday();

    List<OrderListVO> getTodayOrders();

    List<OrderListVO> getOldOrders();

    boolean isExist(String orderId);

    void end(String orderId);
}
